<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Create User', 'url'=>array('create')),
);

?>

<h3>管理用户</h3>
<a href="<?php echo $this->createUrl('/manage/user/create/');?>" class="btn">用户添加</a>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'cssFile'=>false,
	'emptyText'=>'未找到符合条件数据',
	'itemsCssClass'=>'table table-bordered table-hover',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		'id',
		'username',
		'lastlogin',
		array(
		'class'=>'application.views.widgets.zii-grid.BButtonColumn',
		),
	),
)); ?>
